package com.action.log;
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.business.log.LogInfoBus;
import com.config.SystemGlobals;


public class DeleteQuote extends HttpServlet {

	private static final long serialVersionUID = 1L;

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {


		String contentType = SystemGlobals.getValue("contentType");
		PrintWriter out = response.getWriter();
		response.setContentType(contentType);
		LogInfoBus lib=new LogInfoBus();
		String[] logNos=request.getParameterValues("deleted");
		for(int i=0;i<logNos.length;i++) {
			lib.updateLogByDeleteQuote(logNos[i]);
		}
		out.print("<script>alert(\"取消了对选定日志的推荐\");window.location=\"admin/blog/goodsloglist.jsp\";</script>");
		out.close();
	}

}
